﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/MainContent.Master"
    Inherits="System.Web.Mvc.ViewPage<MShop.Core.Configuration.ShopCfgSettings>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    配置管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="fullBox">
        <div id="formOutBox">
            <div id="formTitle">
                <div class="formTitleCard_c" id="Header1">
                    基本管理</div>
                <div class="formTitleCard" id="Header2">
                    货币配置</div>
                <div class="formTitleCard" id="Header3">
                    图片配置</div>
                <div class="formTitleCard" id="Header4">
                    邮件配置</div>
                <div class="formTitleCard" id="Header5">
                    网页优化</div>
                <div class="formTitlRight">
                    <img src="/Content/back.png" width="16" height="16" border="0" align="middle" style="margin-right: 3px;" />
                    <%: Html.ActionLink("返回", "Index") %>
                </div>
            </div>
            <div id="formBox">
                <% Html.EnableClientValidation(); %>
                <% using (Html.BeginForm())
                   {%>
                <%: Html.ValidationSummary(true) %>
                <table width="100%" id="Content1" border="0" cellspacing="0" cellpadding="3" class="formTable">
                     <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteName)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteName)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteName)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteTitle)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteTitle)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteTitle)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteAddress) %>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteAddress)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteAddress)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteLogo)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteLogo)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteLogo)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSitePhone)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSitePhone)%>
                            <%: Html.ValidationMessageFor(model => model.WebSitePhone)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteQQ)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteQQ)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteQQ)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteCompany)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteCompany)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteCompany)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                      <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.PerPoint)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.PerPoint)%>
                                <%: Html.ValidationMessageFor(model => model.PerPoint)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteUrl)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteUrl)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteUrl)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteLicenseKey)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteLicenseKey)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteLicenseKey)%>
                        </td>
                        <td width="5px;">
                        </td>
                    </tr>
                     <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSitePageSize)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSitePageSize)%>
                                <%: Html.ValidationMessageFor(model => model.WebSitePageSize)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                    <tr>
                        <td width="100">
                            <%: Html.LabelFor(model => model.WebSiteICP)%>
                        </td>
                        <td>
                            <%: Html.EditorFor(model => model.WebSiteICP)%>
                            <%: Html.ValidationMessageFor(model => model.WebSiteICP)%>
                        </td>
                        <td width="5px;">
                        </td>
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteFax)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteFax)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteFax)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteEmail)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteEmail)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteEmail)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteSafeLink)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteSafeLink)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteSafeLink)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                         <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteFooter)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteFooter)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteFooter)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteCopyRight)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteCopyRight)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteCopyRight)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteFilterWords)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteFilterWords)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteFilterWords)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                           <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteCustomerService)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteCustomerService)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteCustomerService)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteHotKeys)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteHotKeys)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteHotKeys)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteHotKeysSearchPath)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteHotKeysSearchPath)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteHotKeysSearchPath)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
                         <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.RoleId)%>
                            </td>
                            <td>
                                <%: Html.DropDownListFor(model => model.RoleId,ViewData["roles"] as IEnumerable<SelectListItem>)%>
                                <%: Html.ValidationMessageFor(model => model.RoleId)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>
               
                    <tr>
                        <td colspan="3" align="center">
                            <input type="submit" value="保存" class="btn" />
                        </td>
                    </tr>
                </table>


                <table width="100%" id="Content2" border="0" cellspacing="0" style="display:none;" cellpadding="3" class="formTable"> 
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.CurrencyId)%>
                            </td>
                            <td>
                                <%: Html.DropDownListFor(model => model.CurrencyId, ViewData["selectlist"] as IEnumerable<SelectListItem>)%>
                                <%: Html.ValidationMessageFor(model => model.CurrencyId)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>                          
                    <tr>
                        <td colspan="3" align="center">
                            <input type="submit" value="保存" class="btn" />
                        </td>
                    </tr>
                </table>




                  <table width="100%" id="Content3" border="0" cellspacing="0" style="display:none;" cellpadding="3" class="formTable"> 
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.ImageWidth)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.ImageWidth)%>
                                <%: Html.ValidationMessageFor(model => model.ImageWidth)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>    
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.ImageHeight)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.ImageHeight)%>
                                <%: Html.ValidationMessageFor(model => model.ImageHeight)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>             
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WaterMarkType)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.WaterMarkType)%>
                                <%: Html.ValidationMessageFor(model => model.WaterMarkType)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr> 
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.Alpha)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.Alpha)%>
                                <%: Html.ValidationMessageFor(model => model.Alpha)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>             
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WaterMarkText)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.WaterMarkText)%>
                                <%: Html.ValidationMessageFor(model => model.WaterMarkText)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr> 
                         <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WaterMarkImage)%>
                            </td>
                            <td>
                                 <%: Html.EditorFor(model => model.WaterMarkImage)%>
                                <%: Html.ValidationMessageFor(model => model.WaterMarkImage)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>                                                      
                    <tr>
                        <td colspan="3" align="center">
                            <input type="submit" value="保存" class="btn" />
                        </td>
                    </tr>
                </table>

                <table width="100%" id="Content4" border="0" cellspacing="0" style="display:none;" cellpadding="3" class="formTable"> 
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.UserName)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.UserName)%>
                                <%: Html.ValidationMessageFor(model => model.UserName)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>   
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.Password)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.Password)%>
                                <%: Html.ValidationMessageFor(model => model.Password)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr> 
                         <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.SSL)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.SSL)%>
                                <%: Html.ValidationMessageFor(model => model.SSL)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr> 
                           <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.SmtpServier)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.SmtpServier)%>
                                <%: Html.ValidationMessageFor(model => model.SmtpServier)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>       
                           <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.Email)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.Email)%>
                                <%: Html.ValidationMessageFor(model => model.Email)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>    
                          <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.Port)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.Port)%>
                                <%: Html.ValidationMessageFor(model => model.Port)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>  
                        
                        
                    <tr>
                        <td colspan="3" align="center">
                            <input type="submit" value="保存" class="btn" />
                        </td>
                    </tr>
                </table>


                <table width="100%" id="Content5" border="0" cellspacing="0" style="display:none;"  cellpadding="3" class="formTable"> 
                        <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteKeyWords)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteKeyWords)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteKeyWords)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>    
                         <tr>
                            <td width="100">
                                <%: Html.LabelFor(model => model.WebSiteDescription)%>
                            </td>
                            <td>
                                <%: Html.EditorFor(model => model.WebSiteDescription)%>
                                <%: Html.ValidationMessageFor(model => model.WebSiteDescription)%>
                            </td>
                            <td width="5px;">
                            </td>
                        </tr>  
                    <tr>
                        <td colspan="3" align="center">
                            <input type="submit" value="保存" class="btn" />
                        </td>
                    </tr>
                </table>
                <% } %>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMeta" runat="server">
    <script type="text/javascript" src="/ck/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/ck/ckeditor/_samples/sample.js"></script>
    <script type="text/javascript" src="/ck/ckfinder/ckfinder.js"></script>
    <script language="javascript" src="/js/CheckActivX.js"></script>
    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
    </object>
    <script type="text/javascript">
        $(document).ready(function () {


            //选项卡按钮
            $('#formTitle').find("div").click(function () {
                var myid = this.id;
                var id = myid.replace('Header', '');
                for (var i = 1; i <= 5; i++) {
                    if (i == parseInt(id)) {
                        $('#Header' + i).removeClass().addClass("formTitleCard_c");
                        $('#Content' + i).show();
                    }
                    else {
                        $('#Header' + i).removeClass().addClass("formTitleCard");
                        $('#Content' + i).hide();
                    }
                }
            });

        });
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
